<page-header autoTitle="false" />
<div class="card-container">
  <nz-card style="width: 60%" nzTitle="修改密码" nzSize="small" [nzExtra]="extraTemplate">
    <form nz-form [formGroup]="form" se-container="1" labelWidth="180">
      <se label="原密码" required>
        <input nz-input type="password" formControlName="oldPassword" placeholder="请输入原密码" />
      </se>
      <se label="新密码" required>
        <input nz-input type="password" formControlName="password1" placeholder="请输入新密码" />
      </se>
      <se label="确认密码" required>
        <input nz-input type="password" formControlName="password2" placeholder="请输入确认密码" />
      </se>
      <se>
        <button nz-button nzType="primary" (click)="submit()" [disabled]="form.invalid" type="submit" [nzLoading]="submitting">提交</button>
      </se>
    </form>
  </nz-card>
  <ng-template #extraTemplate>
    <button nz-button nzType="default" (click)="back()">返回</button>
  </ng-template>
</div>
